<?php
/**
 * 咨询师
 *
 * User: kaikaic
 * Date: 2018/10/30
 * Time: 21:34
 */

namespace app\api\service;

use service\BasicService;
use think\Db;

class OrganizationService extends BasicService {

    public function init() {
        $this->dataTable = ['PsyOrganization'];
    }
    public function getList($param,$limit){
        $res = Db::name($this->dataTable[0])->where($param)->limit($limit)->select();
        return $res;
    }

    public function getMaxSort($tableIndex=0) {
        return Db::name($this->dataTable[$tableIndex])->max('sort');
    }

}

